﻿<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/core/common/taglibs.jsp" %>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<script language="javascript">

$(document).ready(function(){
	$.formValidator.initConfig({formid:"paramdataform",alertmessage:true,tidymode:true,onerror:function(msg){alert(msg)},onsuccess:function(){submitForm_ajax('paramdataform',null);return false;}});
	  <s:if test="pageState!='edit'">
	  	$("#code").formValidator().inputValidator({min:1,onerror:"<s:text name='parmData.message.code' />"});
	  </s:if>
	$("#name").formValidator().inputValidator({min:1,onerror:"<s:text name='parmData.message.name' />"});
	$("#sortNum").formValidator().inputValidator({max:5,onerror:"<s:text name='parmData.message.sortnum.one' />"}).regexValidator({regexp:"intege1",datatype:"enum",onerror:"<s:text name='parmData.message.sortnum.two' />"});
});
</script>
<body style="overflow-x:hidden;overflow-y:auto;" >
<form action="${ctx}/system/paramData.action" id="paramdataform"  method="get" >
 	<s:if test="pageState=='add'">  
 		<s:hidden name="act" value="addSubmit"></s:hidden>
	</s:if>
	<s:if test="pageState=='edit'">
		<s:hidden name="act" value="editSubmit"></s:hidden>
		<s:hidden name="paramData.parmDataId" value="%{paramData.parmDataId}" />
	</s:if>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
 <s:hidden  name="q_typeCode" value="%{q_typeCode}" />
 <s:hidden name="q_canModify" value="%{q_canModify}"/>
  <%@include file="/WEB-INF/core/common/message.jsp"  %>
  <tr><td><table border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="8" height="27"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
    <td width="99%" align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:if test="pageState=='edit'"><s:text name="parmData.modify"/>[${dataDesc}]<s:text name="parmData.parmData" /></s:if><s:if test="pageState=='add'"><s:text name="parmData.add"/>[${dataDesc}]<s:text name="parmData.parmData" /></s:if></td>
    <td width="8"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
    </table>
    </td>
  </tr>
  <tr>
    <td colspan="4" class="biaoge">
         <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
                  <tr align="left">
                      <td width="6%" height="25" bgcolor="#DDE4EA" nowrap>&nbsp;<s:text name="parmData.code" />&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA" nowrap>
                      <s:if test="pageState=='edit'">
                      		<exts:textfield name="paramData.code" value="%{paramData.code}" class="textbox_css" style="width:150px" editState="view" outHidden="true"></exts:textfield>
                      </s:if>
                      <s:else>
                      		<exts:textfield name="paramData.code" value="%{paramData.code}" id="code"  class="textbox_css" style="width:150px" required="true"/>
		              </s:else></td>
                      <td width="6%" bgcolor="#DDE4EA" nowrap>&nbsp;<s:text name="parmData.name"  />&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA" nowrap>
                      			<exts:textfield name="paramData.name" value="%{paramData.name}" id="name" class="textbox_css" style="width:150px" required="true"/>
						</td>

                      <td width="6%" bgcolor="#DDE4EA" nowrap>&nbsp;<s:text name="parmData.status" />&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA" nowrap>
                      	<exts:select list="listStatus" name="paramData.status" value="%{paramData.status}"  code="SELECT_STATUS" listKey="key" listValue="value"  required="true"></exts:select>
                      </td>       
                  </tr>
                  <tr align="left">
                      <td  bgcolor="#DDE4EA" nowrap>&nbsp;<s:text name="parmData.sortNum" />&nbsp;</td>
                      <td bgcolor="#DDE4EA" nowrap >
                      	<exts:textfield name="paramData.sortNum" id="sortNum" value="%{paramData.sortNum}"  class="textbox_css" style="width:150px" />
                      </td>
                      <td bgcolor="#DDE4EA" colspan="4"></td>
                      
                 </tr>
                 
                 <tr align="left">
                      <td  bgcolor="#DDE4EA" nowrap>
                           &nbsp;<s:if test="parmDesc.extFld1Valid">${parmDesc.extFld1Title}</s:if>&nbsp;
                      </td>
                      <td bgcolor="#DDE4EA" nowrap colspan=2><s:if test="parmDesc.extFld1Valid">
                      				<exts:textfield name="paramData.extFld1" value="%{paramData.extFld1}"  class="textbox_css" style="width:150px" />
                      			</s:if>
                      			<s:else>
                      				&nbsp;
                      			</s:else>
                      </td>
                      <td  bgcolor="#DDE4EA" nowrap>
                           &nbsp;<s:if test="parmDesc.extFld2Valid">${parmDesc.extFld2Title}</s:if>&nbsp;
                      </td>
                      <td bgcolor="#DDE4EA" nowrap colspan=2><s:if test="parmDesc.extFld2Valid">
                      			<exts:textfield name="paramData.extFld2" value="%{paramData.extFld2}"  class="textbox_css" style="width:150px" />
                      			</s:if>
                      			<s:else>&nbsp;</s:else>
                      </td>
                      
                      
                 </tr>
                 
                 <tr>
                      <td height="10" colspan="6" background="../core/images/line5.gif">&nbsp;</td>
                 </tr>
                 <tr>
                      <td height="25" colspan="6" align="center">
							<input name="button22" type="submit" class="btn" onclick=""  value=" <s:text name='parmData.save'/> "/>
			                <input type="button" name="Button11" value=" <s:text name='parmData.return' /> " class="btn" onClick="submit_ajax('${ctx}/system/paramDataSearch.action?act=reQuery&busiId=searchParamData&q_typeCode=${q_typeCode}','mainframe');" />
			           </td>
                 </tr>
             </table>
            </td>
          </tr>
    </table>
   </form>
</body>
